{%extends "base.html"%}
{%block body%}
<div id="content">
<div id="twitter_div">
<h2 class="sidebar-title">Twitter Updates</h2>
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/zhuzhu" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>
</div>

{%for entry in entries%}
<div class="entry_list">
<h2 class="list"><a href="/weblog/entry/{{entry.key.id}}">{{entry.name|escape}}</a></h2>
<p class="entry_date">{{entry.created|date:"Y/m/d H:i:s"}} by {{entry.giver}}, {{entry.comments}} comments.</p>
{% load highlight %}
<div class="entry_content">{{ entry.description|pygmentize }}</div>

</div>
{%endfor%}
{{forloop.revcounter}}
<div id="list_nav">
  <div class="span-8">{%ifequal list_num 15%}<a href="/weblog/?page={{ppage}}" title="上一页">« Previous Entries</a>{%endifequal%}</div>
  <div class="span-7 last">{%ifnotequal ppage 1%}<a href="/weblog/?page={{npage}}" title="下一页">Next Entries »</a>{%endifnotequal%}</div>
</div>

</div>
<hr class="disable" />
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/zhuzhu.json?callback=twitterCallback2&amp;count=8"></script>

{%endblock%}
